package com.wyw.learning.thread.immutable;

/**
 * 类/方法简述
 *
 * @author Mr Wu    yewen.wu.china@gmail.com
 * <p>
 * Update History:
 * Author        Time            Content
 */
public class FinalStringDemo2 {
    public static void main(String[] args) {
        String a = "wyw2";
        final String b = getDashixiong();//通过方法拿到后，不能拿到值，所以会有不同
        String c = b + 2;
        System.out.println(a == c);

    }

    private static String getDashixiong() {
        return "wyw";
    }
}
